package com.example.helloworld;

public class BreakTest {
    public static void main(String[] args) {
        int [] numbers = {1, 2, 3, 4, 5};
        for (int X: numbers) {
            if (X == 3) {
                break;
            }
            System.out.print(X);
            System.out.print("\n");
        }
    }
}
